/*
 * Copyright (c) 2017-2019, Lindenis Tech. Ltd.
 * All rights reserved.
 *
 * File:
 *
 * Description:
 *
 * Author:
 *      xiaoshujun@lindeni.com
 *
 * Create Date:
 *      2019/11/04
 *
 * History:
 *
 */

/*
 * define the camera test case.
 */
ldcam_ctx_t g_record_case[] =
{
    {
        // 3840x2160_30fps_H264_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 3840,
        .camera_config.cap_height = 2160,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 3840,
        .record_config.venc_height = 2160,
        .record_config.framerate = 30,
        .record_config.bitrate = 15*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 3840x2160_30fps_H264_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 3840,
        .camera_config.cap_height = 2160,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 3840,
        .record_config.venc_height = 2160,
        .record_config.framerate = 30,
        .record_config.bitrate = 15*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 3840x2160_30fps_H265_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 3840,
        .camera_config.cap_height = 2160,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 3840,
        .record_config.venc_height = 2160,
        .record_config.framerate = 30,
        .record_config.bitrate = 15*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 3840x2160_30fps_H265_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 3840,
        .camera_config.cap_height = 2160,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 3840,
        .record_config.venc_height = 2160,
        .record_config.framerate = 30,
        .record_config.bitrate = 15*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_30fps_H264_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 30,
        .record_config.bitrate = 5*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_30fps_H264_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 30,
        .record_config.bitrate = 5*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_30fps_H265_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 30,
        .record_config.bitrate = 5*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_30fps_H265_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 30,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 30,
        .record_config.bitrate = 5*1024*1024,
        .record_config.gop = 30,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_60fps_H264_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 60,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 60,
        .record_config.bitrate = 10*1024*1024,
        .record_config.gop = 60,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_60fps_H264_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 60,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H264,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 60,
        .record_config.bitrate = 10*1024*1024,
        .record_config.gop = 60,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_60fps_H265_MP4
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 60,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 60,
        .record_config.bitrate = 10*1024*1024,
        .record_config.gop = 60,
        .record_config.mux_type = AV_MUX_TYPE_MP4,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
    {
        // 1920x1080_60fps_H265_TS
        .b_test_case = 1,
        .p_save_path = "/mnt/UDISK",
        .camera_config.cap_width = 1920,
        .camera_config.cap_height = 1080,
        .camera_config.framerate = 60,
        .camera_config.cap_width_sub = 1920,
        .camera_config.cap_height_sub = 1080,
        .record_config.venc_type = AV_ENC_TYPE_H265,
        .record_config.venc_width = 1920,
        .record_config.venc_height = 1080,
        .record_config.framerate = 60,
        .record_config.bitrate = 10*1024*1024,
        .record_config.gop = 60,
        .record_config.mux_type = AV_MUX_TYPE_MPEG_TS,
        .picture_config.width = 3840,
        .picture_config.height = 2160,
    },
};

int g_record_case_cnt = sizeof(g_record_case)/sizeof(ldcam_ctx_t);

